import{p as s}from"./DYzv3ZvW1QRtOq.js";import{d as o,a9 as r,b as t,o as e,u as l,ah as i}from"./DrFvzlh8agutd.js";import"./MpnPZlTSagutd.js";import"./DZFz6IIX1esOcA.js";import"./BPirqa3s3yM15e.js";import"./sf48gIWk3aD96J.js";import"./Ba8fE4Bu4swc5U.js";const p=["src"],c={key:1,class:"app-pdf-thumbnail-placeholder"},g=o({__name:"app-pdf-thumbnail",props:{assetUrl:{}},setup(a){const n=a,m=r(()=>n.assetUrl);return s.useThumbnail(m),(u,d)=>(e(),t("div",{class:i(["app-pdf-thumbnail",`app-pdf-thumbnail-${a.assetUrl==null?"empty":l(s).thumbnails[a.assetUrl]?"loading":"loaded"}`])},[a.assetUrl&&l(s).thumbnails[a.assetUrl]?(e(),t("img",{key:0,src:l(s).thumbnails[a.assetUrl]},null,8,p)):(e(),t("div",c))],2))}});export{g as default};